/*
 * @Description: 数据模拟
 * @Autor: HuiSir<273250950@qq.com>
 * @Date: 2020-08-06 13:59:49
 * @LastEditTime: 2020-09-01 15:20:50
 */
import Mock from 'mockjs'
import { Bar1, Bar2, Bar3, Bar4 } from './roles/defaultChart/bar'
import { Line1, Line2, Line3, Line4 } from './roles/defaultChart/line'
import { TwoYAxis1, TwoYAxis2 } from './roles/defaultChart/twoYAxis'
import { Pie1, Pie2 } from './roles/defaultChart/pie'
import { Gauge1 } from './roles/defaultChart/gauge'
import { Map1, Map2 } from './roles/defaultChart/map'
import { Radar1, Radar2 } from './roles/defaultChart/radar'
import { Scatter1, Scatter2, Scatter3 } from './roles/defaultChart/scatter'

//延时
Mock.setup({
  timeout: '0-300'
})

//柱图
Mock.mock(/\/getBar1/, 'get', Bar1)
Mock.mock(/\/getBar2/, 'get', Bar2)
Mock.mock(/\/getBar3/, 'get', Bar3)
Mock.mock(/\/getBar4/, 'get', Bar4)

//折线图
Mock.mock(/\/getLine1/, 'get', Line1)
Mock.mock(/\/getLine2/, 'get', Line2)
Mock.mock(/\/getLine3/, 'get', Line3)
Mock.mock(/\/getLine4/, 'get', Line4)

//多轴图
Mock.mock(/\/getTwoYAxis1/, 'get', TwoYAxis1)
Mock.mock(/\/getTwoYAxis2/, 'get', TwoYAxis2)

//饼图
Mock.mock(/\/getPie1/, 'get', Pie1)
Mock.mock(/\/getPie2/, 'get', Pie2)

//仪表盘
Mock.mock(/\/getGauge1/, 'get', Gauge1)

//地图
Mock.mock(/\/getMap1/, 'get', Map1)
Mock.mock(/\/getMap2/, 'get', Map2)

//雷达图
Mock.mock(/\/getRadar1/, 'get', Radar1)
Mock.mock(/\/getRadar2/, 'get', Radar2)

//散点图
Mock.mock(/\/getScatter1/, 'get', Scatter1)
Mock.mock(/\/getScatter2/, 'get', Scatter2)
Mock.mock(/\/getScatter3/, 'get', Scatter3)
